Skip to content

Quick fork of HttpClientFactory to use own HttpClient.#68

Open
holdmann wants to merge 1 commit intomindbox-cloud:masterfrom
holdmann:use_custom_http_client
Open

Quick fork of HttpClientFactory to use own HttpClient.#68
holdmann wants to merge 1 commit intomindbox-cloud:masterfrom
holdmann:use_custom_http_client

Conversation

@holdmann
Copy link

Возможность использовать свой собственный http-клиент,

решение на скорую руку

class CustomMindboxHttpClient extends \Mindbox\HttpClients\CurlHttpClient {
// own logic
}

...
$config['httpClient'] = CustomMindboxHttpClient::class;
...
$mb = new \Mindbox\Mindbox($config);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant